package com.learn.run;

import com.learn.config.WiseConfig;
import com.learn.service.WiseService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @Author:Mark
 * @Description:
 * @Date: Created on 15:00 2018-11-13
 * @Modify by:
 */
public class WiselyRun {

  public static void main(String[] args) {
    AnnotationConfigApplicationContext context=new AnnotationConfigApplicationContext(WiseConfig.class);
    WiseService wiseService = context.getBean(WiseService.class);
    wiseService.sayWisely();
  }

}
